package com.cn.transfer.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Builder;
import lombok.Data;

/**
 * @author: 向伟典
 * @date: 2023/9/13 10:59
 * @Description: ${description}
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = "VV_SA_SaleOrder")
public class VvSaSaleOrder {
    /**
     * 销售订单id
     */
    @TableId(value = "SalesOrderID", type = IdType.AUTO)
    private String salesorderid;

    /**
     * 单据编号
     */
    @TableField(value = "DocumentNumber")
    private String documentnumber;

    /**
     * 单据日期
     */
    @TableField(value = "DocumentDate")
    private Date documentdate;

    /**
     * 业务类型
     */
    @TableField(value = "BusinessType")
    private String businesstype;

    /**
     * 客户
     */
    @TableField(value = "Customer")
    private String customer;

    /**
     * 客户来源
     */
    @TableField(value = "CustomerSource")
    private String customersource;

    /**
     * 交货方式
     */
    @TableField(value = "DeliveryMethod")
    private String deliveryMethod;
    /**
     * 结算客户
     */
    @TableField(value = "SettlementCustomer")
    private String settlementcustomer;

    /**
     * 部门
     */
    @TableField(value = "Department")
    private String department;

    /**
     * 业务员
     */
    @TableField(value = "SalesPerson")
    private String salesperson;

    private String salespersonName;
    /**
     * 仓库
     */
    @TableField(value = "Warehouse")
    private String warehouse;

    /**
     * 币种
     */
    @TableField(value = "Currency")
    private String currency;

    /**
     * 汇率
     */
    @TableField(value = "ExchangeRate")
    private String exchangerate;

    /**
     * 预计交货日期
     */
    @TableField(value = "EstimatedDeliveryDate")
    private Date estimateddeliverydate;

    /**
     * 订金金额
     */
    @TableField(value = "EarnestMoney")
    private String earnestmoney;

    /**
     * 下单店铺
     */
    @TableField(value = "OrderingShop")
    private String orderingshop;

    /**
     * 出货地点
     */
    @TableField(value = "ShippingLocation")
    private String shippinglocation;

    /**
     *  订单类型
     */
    @TableField(value = "OrderType")
    private String ordertype;

    /**
     * 客户地区
     */
    @TableField(value = "CustomerRegion")
    private String customerregion;

    /**
     * 客户所属类别
     */
    @TableField(value = "CustomerCategory")
    private String customercategory;

    /**
     * 自营合同号新
     */
    @TableField(value = "SelfOperatedContract")
    private String selfoperatedcontract;

    /**
     * 核算组装
     */
    @TableField(value = "AccountingAssembly")
    private String accountingassembly;

    /**
     * 备注
     */
    @TableField(value = "Memo")
    private String memo;

    /**
     * 制单人地址
     */
    @TableField(value = "MakerAddress")
    private String makerAddress; // 制单人地址
    /**
     * 制单日期
     */
    @TableField(value = "MadeDate")
    private Date madeDate; // 制单日期
    /**
     * 审核日期
     */
    @TableField(value = "AuditedDate")
    private Date auditedDate; // 审核日期

    @TableField(value = "auditorid")
    private String auditorid; //审核人

    @TableField(value = "wukonghuifu")
    private String wukonghuifu;

    private List<VvSaSaleOrderB> vvsasaleorderblist;

    private String _id;
    public VvSaSaleOrder() {
    }

    public VvSaSaleOrder(
            String salesorderid,
            String documentnumber,
            Date documentdate,
            String businesstype,
            String customer,
            String customersource,
            String deliveryMethod,
            String settlementcustomer,
            String department,
            String salesperson,
            String warehouse,
            String currency,
            String exchangerate,
            Date estimateddeliverydate,
            String earnestmoney,
            String orderingshop,
            String shippinglocation,
            String ordertype,
            String customerregion,
            String customercategory,
            String selfoperatedcontract
    ) {
        this.salesorderid = salesorderid;
        this.documentnumber = documentnumber;
        this.documentdate = documentdate;
        this.businesstype = businesstype;
        this.customer = customer;
        this.customersource = customersource;
        this.deliveryMethod = deliveryMethod;
        this.settlementcustomer = settlementcustomer;
        this.department = department;
        this.salesperson = salesperson;
        this.warehouse = warehouse;
        this.currency = currency;
        this.exchangerate = exchangerate;
        this.estimateddeliverydate = estimateddeliverydate;
        this.earnestmoney = earnestmoney;
        this.orderingshop = orderingshop;
        this.shippinglocation = shippinglocation;
        this.ordertype = ordertype;
        this.customerregion = customerregion;
        this.customercategory = customercategory;
        this.selfoperatedcontract = selfoperatedcontract;
    }




}